<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>v-on</title>
</head>
<body>
	<div id="app">
		<ul>
			<li v-for="item,i in list" v-on:click="dialog(item)">{{item + '-' + i }}</li>
		</ul>
	</div>
</body>
</html>
<script src="../2.1.8/vue.js"></script>
<script>
	// 选项对象
	let vm = new Vue({
		el : '#app',
		data : {
			list : ['q','w','e','r']
		},
		methods : {
			dialog(item){
				alert(item);
			}
		}
	});
</script>